<template>
    <div>{{123123}}</div>
</template>

<script>
    export default {
        name: "test",
        watch: {
            '$route'(to, from) {
                console.log('watch到变化test')
            }
        },
        beforeRouteUpdate(to, from, next) {
            // react to route changes...
            // don't forget to call next()
            console.log('test抓到了参数update')
            next()
        },

    }



</script>

<style scoped>

</style>


